import React from 'react'

import {CompassOutlined, HomeOutlined, VideoCameraOutlined, DesktopOutlined, MoneyCollectOutlined, SoundOutlined, BulbOutlined, BookOutlined, MobileOutlined, CommentOutlined, UserOutlined, Football} from '@ant-design/icons';

export const setting = {


    state: {
        route: [

            {
                path: '/', title: '首页',
            },

            {
                title: '运营管理', path: '/operation',
                children: [
                    {title: '行情', path: '/operation/quotation',},
                    {title: '商品', path: '/operation/mall',},
                    {title: '销售人员', path: '/operation/seller',},
                    {title: '轮播图', path: '/operation/carousel',},
                    {title: '公司简介', path: '/operation/company',},
                ],
            },

        ],
        type: localStorage.getItem('themeType') || 'dark',
        breadCrumbState: localStorage.getItem('breadCrumb') || false,
        sideCollapse: false,
    },

    reducers: {
        doSideCollapse(state, payload) {
            return {...state, sideCollapse: !state.sideCollapse}
        },
        setupThemeType(state, payload) {
            localStorage.setItem('themeType', payload)
            return {...state, type: payload}
        },
        toggleBreadCrumb(state, payload) {
            localStorage.setItem('breadCrumb', !state.breadCrumbState)
            return {...state, breadCrumbState: !state.breadCrumbState}
        },
    }

}
